#include<stdio.h>
int main()
{
	float sum;
	int n,i;
	scanf("%d",&n);
	sum=0,i=0;
	while(i<=n-1)
	{
		i+=1;
		sum+=1/(float)i;
	}
	printf("%.2f",sum);
	return 0;
}
